package com.pair.micro.common.utils;


import com.fasterxml.jackson.databind.ObjectMapper;

public class JacksonUtil {
	
	static volatile ObjectMapper objectMapper = null;

	private JacksonUtil(){}

	public static ObjectMapper getObjectMapper(){
		if (objectMapper == null){
			synchronized (ObjectMapper.class) {
				if (objectMapper == null){
					objectMapper = new ObjectMapper();
				}
			}
		}
		return objectMapper;
	}
	
}
